package cn.e4j.modular.crm.service;

import cn.e4j.core.dto.impl.Dto;
import cn.e4j.modular.crm.entity.GwauT;
import cn.e4j.modular.crm.entity.GwaulT;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  商机分类 服务类
 * </p>
 *
 * @author mengyb
 * @since 2019-04-12
 */
public interface GwauTService extends IService<GwauT> {
    /**
     * 查询商机分类列表
     * @param dto
     * @param page
     * @return
     */
    List<Map<String, Object>> getList(Dto dto, Page<Object> page);


    void add(GwauT gwauT, GwaulT gwaulT);

    void edit(GwauT gwauT, GwaulT gwaulT);

    void delRow(GwauT gwauT, GwaulT gwaulT);

    void delRows(List<GwauT> gwauTList);

    /**
     * 查重
     * @param gwauT
     * @return
     */
    Boolean existedTheParams(GwauT gwauT);
}
